package gen.kaynak.navitrack.charProcessingCoR;

import gen.kaynak.navitrack.MessageProcessManager;

public class SymbolHandler implements ICharHandler {
	private ICharHandler successor;

	public SymbolHandler() {
		successor = new NumberHandler();

	}

	public void HandleRequest(char c, MessageProcessManager mpm) {
		// refine condition definition to include Symbol check as VB
		if (Character.isLetter(c)||Character.isDigit(c)||Character.isWhitespace(c)) {
			mpm.getStateContextManager().processSymbol(c);
		} else {
			successor.HandleRequest(c, mpm);

		}
	}

}